<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SSDPNET: XSegment3dExtension.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SSDPNET<span id="projectnumber">&#160;1.0</span>
   </div>
   <div id="projectbrief">.NET SDK</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>包</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_6e8f4508e1d360b9a007f40edb8dae96.html">_SSDP</a></li><li class="navelem"><a class="el" href="dir_b1efc71fc5c0b1546dfaf7dca60b6e03.html">最新</a></li><li class="navelem"><a class="el" href="dir_3da81ba1892e410416fdba26c4859275.html">Repo</a></li><li class="navelem"><a class="el" href="dir_36a1a74683486d663aaa949ba78ca961.html">bim-ssd-core-plugin</a></li><li class="navelem"><a class="el" href="dir_c085970a38f500e61b887bb609fc24fd.html">SSDP.Net</a></li><li class="navelem"><a class="el" href="dir_3d9778eef114628a3d8facdda36c5043.html">SSDPNet</a></li><li class="navelem"><a class="el" href="dir_bd54ebea303681ad88c98d142df46247.html">PublicAPI</a></li><li class="navelem"><a class="el" href="dir_4cdd252a4c00d0fc823c862a50c8bed7.html">Geom</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">XSegment3dExtension.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="preprocessor">#pragma region Include_Platform</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="preprocessor">#include &lt;ATECCore\ATECCoreAPI.h&gt;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="keyword">using namespace </span>System;</div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="keyword">using namespace </span>System::Runtime::CompilerServices;</div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="keyword">using namespace </span>System::Runtime::InteropServices;</div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span>USING_NAMESPACE_ATEC</div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span>USING_NAMESPACEATEC_ATDATACORE</div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span>USING_NAMESPACE_ATEC_RATCORE</div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#pragma endregion Include_Platform</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespace_s_s_d_p_n_e_t.html">SSDPNET</a></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span>{</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span>    <span class="keyword">namespace </span>Geom</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span>    {</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span>        [Extension()]</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension.html">   22</a></span>        <span class="keyword">public ref class</span> <a class="code hl_class" href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension.html">XSegment3dExtension</a></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span>        {</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span>        <span class="keyword">public</span>:</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span>            [Extension()]</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span>            <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension.html#a9a77053cb98ee78a9f3a6e6558cedbaa">ProjectPoint</a>(ATEC::GeometryNET::XSegment3d segment3d,</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span>                out ATEC::GeometryNET::XPoint3d  closestPoint,</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>                out  <span class="keywordtype">double</span>  closestParam,</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>                ATEC::GeometryNET::XPoint3d point);</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>        <span class="keyword">public</span>:</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>            [Extension()]</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>            <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension.html#a972f420f06e21c43ab3846ac1e2451de">ProjectPointXY</a>(ATEC::GeometryNET::XSegment3d segment3d,</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span>                out ATEC::GeometryNET::XPoint3d  closestPoint,</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span>                out  <span class="keywordtype">double</span>  closestParam,</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span>                ATEC::GeometryNET::XPoint3d point);</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span> </div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>        <span class="keyword">public</span>:</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>            [Extension()]</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>            <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension.html#a4a3ded5af168a86d7e285237aa78e8d3">Intersect</a>(ATEC::GeometryNET::XSegment3d segment3d,</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>                out ATEC::GeometryNET::XPoint3d  intPoint,</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>                out  <span class="keywordtype">double</span>  intParam,</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>                ATEC::GeometryNET::XPlane3d plane);</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>        <span class="keyword">public</span>:</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>            <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension.html#a4d4c27e163342e3af16b85fe44c7e712">ClosestApproachBounded</a>(</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>                out  <span class="keywordtype">double</span>  fraction0,</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>                out  <span class="keywordtype">double</span>  fraction1,</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>                out ATEC::GeometryNET::XPoint3d  point0,</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>                out ATEC::GeometryNET::XPoint3d  point1,</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span>                ATEC::GeometryNET::XSegment3d segment0,</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span>                ATEC::GeometryNET::XSegment3d segment1);</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span> </div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>        <span class="keyword">public</span>:</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>            <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension.html#ad865bb7c8881ef9656136cabd675ebe9">ClosestApproachUnbounded</a>(</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>                out  <span class="keywordtype">double</span>  fraction0,</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>                out  <span class="keywordtype">double</span>  fraction1,</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>                out ATEC::GeometryNET::XPoint3d  point0,</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span>                out ATEC::GeometryNET::XPoint3d  point1,</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>                ATEC::GeometryNET::XSegment3d segment0,</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>                ATEC::GeometryNET::XSegment3d segment1);</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span>        };</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>    }</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>}</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span> </div>
<div class="ttc" id="aclass_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension_html"><div class="ttname"><a href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension.html">SSDPNET::Geom::XSegment3dExtension</a></div><div class="ttdoc">线段扩展类</div><div class="ttdef"><b>Definition:</b> XSegment3dExtension.h:23</div></div>
<div class="ttc" id="aclass_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension_html_a4a3ded5af168a86d7e285237aa78e8d3"><div class="ttname"><a href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension.html#a4a3ded5af168a86d7e285237aa78e8d3">SSDPNET::Geom::XSegment3dExtension::Intersect</a></div><div class="ttdeci">static const bool Intersect(ATEC::GeometryNET::XSegment3d segment3d, out ATEC::GeometryNET::XPoint3d intPoint, out double intParam, ATEC::GeometryNET::XPlane3d plane)</div><div class="ttdoc">Desc： 计算（无界）线段与平面的交点</div><div class="ttdef"><b>Definition:</b> XSegment3dExtension.cpp:51</div></div>
<div class="ttc" id="aclass_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension_html_a4d4c27e163342e3af16b85fe44c7e712"><div class="ttname"><a href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension.html#a4d4c27e163342e3af16b85fe44c7e712">SSDPNET::Geom::XSegment3dExtension::ClosestApproachBounded</a></div><div class="ttdeci">static void ClosestApproachBounded(out double fraction0, out double fraction1, out ATEC::GeometryNET::XPoint3d point0, out ATEC::GeometryNET::XPoint3d point1, ATEC::GeometryNET::XSegment3d segment0, ATEC::GeometryNET::XSegment3d segment1)</div><div class="ttdoc">Desc： 两条有界线段最近的点</div><div class="ttdef"><b>Definition:</b> XSegment3dExtension.cpp:75</div></div>
<div class="ttc" id="aclass_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension_html_a972f420f06e21c43ab3846ac1e2451de"><div class="ttname"><a href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension.html#a972f420f06e21c43ab3846ac1e2451de">SSDPNET::Geom::XSegment3dExtension::ProjectPointXY</a></div><div class="ttdeci">static const bool ProjectPointXY(ATEC::GeometryNET::XSegment3d segment3d, out ATEC::GeometryNET::XPoint3d closestPoint, out double closestParam, ATEC::GeometryNET::XPoint3d point)</div><div class="ttdoc">Desc： 仅在XY方向上将给定点投影到延伸后的线段上</div><div class="ttdef"><b>Definition:</b> XSegment3dExtension.cpp:27</div></div>
<div class="ttc" id="aclass_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension_html_a9a77053cb98ee78a9f3a6e6558cedbaa"><div class="ttname"><a href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension.html#a9a77053cb98ee78a9f3a6e6558cedbaa">SSDPNET::Geom::XSegment3dExtension::ProjectPoint</a></div><div class="ttdeci">static const bool ProjectPoint(ATEC::GeometryNET::XSegment3d segment3d, out ATEC::GeometryNET::XPoint3d closestPoint, out double closestParam, ATEC::GeometryNET::XPoint3d point)</div><div class="ttdoc">Desc： 将给定点投影到延伸后的线段上</div><div class="ttdef"><b>Definition:</b> XSegment3dExtension.cpp:3</div></div>
<div class="ttc" id="aclass_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension_html_ad865bb7c8881ef9656136cabd675ebe9"><div class="ttname"><a href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_segment3d_extension.html#ad865bb7c8881ef9656136cabd675ebe9">SSDPNET::Geom::XSegment3dExtension::ClosestApproachUnbounded</a></div><div class="ttdeci">static void ClosestApproachUnbounded(out double fraction0, out double fraction1, out ATEC::GeometryNET::XPoint3d point0, out ATEC::GeometryNET::XPoint3d point1, ATEC::GeometryNET::XSegment3d segment0, ATEC::GeometryNET::XSegment3d segment1)</div><div class="ttdoc">Desc： 两条线段（视为无界）最近的点</div><div class="ttdef"><b>Definition:</b> XSegment3dExtension.cpp:91</div></div>
<div class="ttc" id="anamespace_s_s_d_p_n_e_t_html"><div class="ttname"><a href="namespace_s_s_d_p_n_e_t.html">SSDPNET</a></div><div class="ttdef"><b>Definition:</b> ATBtmkFuncsExtension.h:17</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6
</small></address>
</body>
</html>
